﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Task.aspx.cs" Inherits="MyDMS_ExtJS.Task" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:Panel ID="MainPanel" runat="server" EnableBackgroundColor="true" ShowBorder="False"
        ShowHeader="False" Title="MainPanel" Layout="Anchor">
        <Items>
            <ext:Panel ID="ManagePanel" runat="server" BodyPadding="5px" AutoHeight="True" EnableBackgroundColor="true"
                ShowBorder="true" ShowHeader="true" Title="管理" HideMode="Display" EnableCollapse="True">
                <Items>
                    <ext:Grid ID="gvManage" runat="server" ShowGridHeader="True" EnableCheckBoxSelect="true"
                        EnableRowNumber="true" Title="业务类别" OnSort="gvManage_Sort" AllowPaging="True"
                        AllowSorting="True" OnPageIndexChange="gvManage_PageIndexChange" DataKeyNames="Folder_Code">
                        <Toolbars>
                            <ext:Toolbar ID="Toolbar1" Width="150" runat="server">
                                <Items>
                                    <ext:Button ID="btnPrint" Text="打印目录" runat="server" OnClick="btnMenu_Click">
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </Toolbars>
                        <Columns>
                            <ext:TemplateField Width="260px" SortField="Folder_Title" HeaderText="名称/描述">
                                <ItemTemplate>
                                    <strong style="font-weight: bold">
                                        <%#DataBinder.Eval(Container.DataItem, "Folder_Title")%></strong>
                                    <br />
                                    <span>
                                        <%#DataBinder.Eval(Container.DataItem, "Folder_Desc")%></span>
                                </ItemTemplate>
                            </ext:TemplateField>
                            <ext:BoundField runat="server" SortField="Cretaion_Date" DataField="Creation_Date"
                                HeaderText="创建日期" />
                            <ext:BoundField runat="server" SortField="Updation_Date" DataField="Updation_Date"
                                HeaderText="更新日期" />
                        </Columns>
                    </ext:Grid>
                </Items>
            </ext:Panel>
            <ext:Panel ID="ViewPanel" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
                ShowBorder="true" ShowHeader="true" Title="最新档案" AutoHeight="True">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar2" Width="150" runat="server">
                        <Items>
                            <ext:Button ID="btnAdd" Text="添加" runat="server">
                            </ext:Button>
                            <ext:Button ID="btnDel" Text="删除" runat="server" OnClick="btnDel_Click">
                            </ext:Button>
                            <ext:Button ID="btnView" Text="查看" runat="server" OnClick="btnView_Click">
                            </ext:Button>
                            <ext:Button ID="Button1" Text="打印" runat="server" OnClick="btnPrint_Click">
                            </ext:Button>
                            <ext:Button ID="btnRefresh" Text="刷新" runat="server" OnClick="btnRefresh_Click">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Items>
                    <ext:Form ID="Form5" ShowBorder="False" BodyPadding="5px" AnchorValue="100%" EnableBackgroundColor="true"
                        ShowHeader="False" runat="server">
                        <Rows>
                            <ext:FormRow>
                                <Items>
                                    <ext:TextBox ID="tbKeyWord" Label="标题（关键词）" runat="server">
                                    </ext:TextBox>
                                    <ext:DatePicker ID="dpStart" Label="开始日期" Required="true" runat="server">
                                    </ext:DatePicker>
                                    <ext:DatePicker ID="dpEnd" Label="结束日期" Required="true" CompareControl="DatePicker1"
                                        CompareOperator="GreaterThan" CompareMessage="结束日期应该大于开始日期！" runat="server">
                                    </ext:DatePicker>
                                </Items>
                            </ext:FormRow>
                            <ext:FormRow>
                                <Items>
                                    <ext:DropDownList runat="server" ID="ddlDocumentType" Label="文件类型">
                                    </ext:DropDownList>
                                    <ext:Button ID="btnSearch" Text="搜索" runat="server" OnClick="btnSearch_Click">
                                    </ext:Button>
                                </Items>
                            </ext:FormRow>
                        </Rows>
                    </ext:Form>
                    <ext:Grid ID="gvDocuments" runat="server" EnableCheckBoxSelect="true" EnableRowNumber="true"
                        ShowHeader="False" AllowPaging="True" AllowSorting="True" OnSort="gvDocuments_Sort"
                        OnPageIndexChange="gvDocuments_PageIndexChange">
                        <Columns>
                            <ext:TemplateField Width="30px" SortField="Document_Code" Hidden="True">
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Document_Code")%>'></asp:Label>
                                </ItemTemplate>
                            </ext:TemplateField>
                            <ext:TemplateField Width="260px" SortField="Document_Name" HeaderText="名称/备注">
                                <ItemTemplate>
                                    <strong style="font-weight: bold">
                                        <%#DataBinder.Eval(Container.DataItem, "Document_Name")%></strong>
                                    <br />
                                    <span>
                                        <%#DataBinder.Eval(Container.DataItem, "Document_Desc")%></span>
                                </ItemTemplate>
                            </ext:TemplateField>
                            <ext:BoundField Width="70px" SortField="OwnerName" DataField="OwnerName" HeaderText="负责人" />
                            <ext:TemplateField Width="160px" SortField="TaskName" HeaderText="小项/分项">
                                <ItemTemplate>
                                    <strong>
                                        <%#DataBinder.Eval(Container.DataItem, "TaskName")%></strong>
                                    <br />
                                    <%-- <span>
                                <%#DataBinder.Eval(Container.DataItem, "FolderName")%></span>--%>
                                </ItemTemplate>
                            </ext:TemplateField>
                            <ext:BoundField Width="160px" SortField="SecretLevelName" DataField="SecretLevelName"
                                HeaderText="密级" />
                            <ext:BoundField Width="160px" SortField="ShelfLifeName" DataField="ShelfLifeName"
                                HeaderText="保存期限" />
                            <ext:BoundField Width="160px" SortField="Updation_Date" DataField="Updation_Date"
                                HeaderText="更新时间" />
                        </Columns>
                    </ext:Grid>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Panel>
    <ext:Window ID="UploadWindow" IconUrl="~/images/16/11.png" runat="server" Popup="false"
        IsModal="true" Target="Parent" Title="上传文件"
        CloseAction="HidePostBack" EnableIFrame="true" IFrameUrl="about:blank"
        Height="351px" Width="650px">
    </ext:Window>
    
    <ext:Window ID="DocEditorWindow" IconUrl="~/images/16/11.png" runat="server" Popup="false"
        IsModal="true" Target="Parent" Title="文件"
        CloseAction="HidePostBack" EnableIFrame="true" IFrameUrl="about:blank"
        Height="600px" Width="800px">
    </ext:Window>
    </form>
</body>
</html>
